//
//  PlanViewController.h
//  Wallets Manager
//
//  Created by Nguyen Chi Cong on 9/13/12.
//  Copyright (c) 2012 BKHN. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DatabaseAccess.h"
#import "Global.h"
#import "folyAppDelegate.h"
#import "AddPlanViewController.h"
#import "CustomPlanCell.h"
#import "SNPopupView.h"
#import "ViewPlanController.h"
@interface PlanViewController : UIViewController <UITableViewDataSource,UITableViewDelegate,SNPopupViewModalDelegate>
{
    SNPopupView		*popup;
    Plan            *currentPlan;
    NSIndexPath     *currentIndexPath;
}
@property (strong, nonatomic) IBOutlet UITableView *planTableView;
@property (strong, nonatomic) IBOutlet UIView *popUpView;

@property (weak, nonatomic) IBOutlet UIButton *editButtonPressed;
@property (weak, nonatomic) IBOutlet UIButton *deleteButtonPressed;

@property (retain, nonatomic)        NSMutableArray *planArray;
- (IBAction)addButtonPressed:(id)sender;
- (IBAction)editButtonPressed:(id)sender;
- (IBAction)deleteButtonPressed:(id)sender;

- (IBAction)viewButtonPressed:(id)sender;


- (IBAction)backButtonPressed:(id)sender;





@end
